package javapuzzles;

public class Twisted {
	private String name;
	
	Twisted(String name) {
		this.name = name;
	}
	
	private String name() {
		return this.name;
	}
	
	private void reproduce() {
		new Twisted("reproduce") {
			void printName() {
				System.out.println(name());
			}
		}.printName();
	}
	
	public static void main(String[] args) {
		new Twisted("main").reproduce();
	}
}
